package edu.sctu.zhangwang.month201505.day20150518.time;

/**
 * Created by user10 on 2015/5/18.
 */
public class Change extends MyTime{
//    MyTime myTime = new MyTime(5,20,30);

    public Change(int hour, int minute, int second) {
        super(hour, minute, second);
    }

    public void addSecond(int sec){
        this.second += sec;
    }
    public void addMinute(int min){
        this.minute += min;
    }
    public void addHour(int hou){
        this.hour += hou;
    }

    public void subSecond(int sec,int min){
        this.second -=sec;
    }
    public void subMinute(int min){
        this.minute -= min;
    }
    public void subHour(int hou){
        this.hour -= hou;
    }
}
